package com.urule4.action;

import com.bstek.urule.model.library.action.annotation.ActionBean;
import com.bstek.urule.model.library.action.annotation.ActionMethod;
import com.bstek.urule.model.library.action.annotation.ActionMethodParameter;

/**
 * 自定义内置动作，要在urule-spring-context.xml中注入bean
 */
@ActionBean(name = "jar包内置动作")
public class MyInnerAction {

    @ActionMethod(name = "去空格")
    @ActionMethodParameter(names = {"目标字符串"})
    public String trim(String str) {
        if (str == null) {
            return null;
        }
        return str.trim();
    }
}
